package com.um.jdy.common.activity.entity.vo;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 优惠券表
 * @TableName activity_coupons
 */
@Data
public class DiscountsAndStationVO extends DiscountsVO {

	@ApiModelProperty(value = "站场ID")
	private String deviceStationIds;

	 public List<String> getDeviceStationIdList(){
		 return StrUtil.isEmpty(this.deviceStationIds) ? new ArrayList() : Arrays.asList(this.deviceStationIds.split(","));
	 }

}
